﻿@model SEMS.Models.News

@{
    ViewBag.Title = "EditorNews";
    Layout = "~/Views/Admin/Shared/_Layout.cshtml";
}

<h2>编辑公告</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true,"修改失败")
@{int newsid=Model.news_id;}
@using (Html.BeginForm(new{id=newsid}))
{
    <div class="editor-label">
        @Html.LabelFor(m=>m.news_title)
    </div>
    <div class="editor-field">
        @Html.EditorFor(m=>m.news_title)
        @Html.ValidationMessageFor(m=>m.news_title)
    </div>
    
    <div class="editor-label">
        @Html.LabelFor(m=>m.news_content)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(m => m.news_content, new { cols = "80" })
        @Html.ValidationMessageFor(m=>m.news_content)
    </div>
    
    <input type="submit" value="确认修改" />
}
